
import { BasicLayout, BlankLayout, PageView, RouteView, UserLayout } from '@/layouts'

/**
 * 前端动态路由组件(页面)配置
 */
export const routerComponents = {
    BasicLayout: {
        name: '基础页面布局',
        describe: '框架基础页面布局，包含了头部导航，侧边栏和通知栏',
        value: BasicLayout,
    },
    BlankLayout: {
        name: '空白布局',
        describe: '空白布局',
        value: BlankLayout
    },
    RouteView: {
        name: '菜单布局',
        describe: '为二级菜单内容区自定义',
        value: RouteView
    },
    PageView: {
        name: '内容页布局',
        describe: '',
        value: PageView
    },
    UserLayout: {
        name: '登录页组件',
        describe: '',
        value: UserLayout
    },
    Forbiden: {
        name: '403',
        describe: '403权限限制页',
        value: () => import('@/views/exception/403')
    },
    NotFound: {
        name: '404',
        describe: '404请求资源未找到',
        value: () => import('@/views/exception/404')
    },
    ServerError: {
        name: '500',
        describe: '500请求错误',
        value: BasicLayout
    },
    Home: {
        name: '主页',
        describe: '',
        value: () => import('@/views/dashboard/Workplace')
    },
    Workplace: {
        name: '工作台',
        describe: '',
        value: () => import('@/views/dashboard/Workplace')
    },
    Analysis: {
        name: '分析页',
        describe: '',
        value: () => import('@/views/dashboard/Analysis')
    },
    Admin: {
        name: '管理员',
        describe: '',
        value: () => import('@/views/control/adminList')
    },
    Role: {
        name: '权限管理',
        describe: '',
        value: () => import('@/views/control/roleList')
    },
    Menu: {
        name: '菜单管理',
        describe: '',
        value: () => import('@/views/control/menu/menu')
    },
}